
// 首页
import Home from '../pages/Home';
// 一级路由
import Login from '../pages/Login';
// 详情
import Details from '../pages/Details';
// 注册路由
import Register from '../pages/Register';

import Catalogue from '../pages/Catalogue';
//个人中心
import Usercenter from '../pages/Usercenter';
// 阅读页
import Reading from '../pages/Reading';
// 阅读历史
import History from '../pages/History';
// 写评论
import CreatComment from '../pages/Createcomment';
// 消息记录
import ConsumptionLog from '../pages/ConsumptionLog';
// 小说搜索
import Searchfict from '../pages/Searchfict';

const router = {
    routes: [{
        path: '/',
        exact: true,
        authRules: false,
        component: Home,
    }, {
        path: '/register',
        exact: true,
        authRules: false,
        component: Register
    }, {
        path: '/details',
        exact: true,
        authRules: false,
        component: Details
    }, {
        path: '/login',
        exact: true,
        component: Login,
    }, {
        path: '/catalogue',
        exact: true,
        authRules: false,
        component: Catalogue,
    }, {
        path: '/usercenter',
        exact: true,
        authRules: false,
        component: Usercenter,
    }, {
        path: '/reading',
        exact: true,
        authRules: false,
        component: Reading,
    }, {
        path: '/history',
        exact: true,
        authRules: false,
        component: History,
    }, {
        path: '/createcomment',
        exact: true,
        authRules: false,
        component: CreatComment,
    }, {
        path: '/consumptionlog',
        exact: true,
        authRules: false,
        component: ConsumptionLog,
    }, {
        path: '/search',
        exact: true,
        authRules: false,
        component: Searchfict,
    },
    ]
};

const routes = router.routes;

export {
    routes
};
export default router;